package com.vhall.component.entity.room;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author dongsong
 */
@Data
@TableName("room_question_lk")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "RoomQuestionLkEntity对象", description = "room_question_lk表")
public class RoomQuestionLkEntity implements Serializable {

    private static final long serialVersionUID = 6544823541060426447L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "问卷id")
    @TableField("question_id")
    private Integer questionId;

    @ApiModelProperty(value = "房间id")
    @TableField("room_id")
    private String roomId;

    @ApiModelProperty(value = "用户id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "结束时间")
    @TableField("finish_time")
    private LocalDateTime finishTime;

    @ApiModelProperty(value = "是否发布，1是0否")
    @TableField("publish")
    private Integer publish;

    @ApiModelProperty(value = "是否绑定，1是0否")
    @TableField("bind")
    private Integer bind;

    @ApiModelProperty(value = "是否有答案，1是0否")
    @TableField("answer")
    private Integer answer;

    @ApiModelProperty(value = "扩展业务字段")
    @TableField("extend")
    private Integer extend;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;

}
